<?php
date_default_timezone_set('Asia/Shanghai');//时区配置
$conn=mysql_connect("localhost","root","gsda1.mysql1");
mysql_select_db("new_gsdai", $conn);
mysql_query("SET character_set_results = 'utf8', character_set_client = 'utf8', character_set_connection = 'utf8', character_set_database = 'utf8', character_set_server = 'utf8'", $conn);

$time1 = strtotime(date('Y-m-d 10:25:00'));
$time2 = strtotime(date('Y-m-d 10:28:00'));

for($i = 0;$i < 100; $i++){
	$sql = "update ych_account_log_$i set total=total+money,use_money=use_money-money where ftype=17 and add_time>$time1 and add_time<$time2";
	$query = mysql_query($sql, $conn);
	if(!$query){
		echo $sql;
		exit;
	}
}

